
import 'package:p_location/home/obj/guest_info_obj.dart';

class ResGuestDetail {
    GuestInfoObj data;
    int code;

    ResGuestDetail({this.data, this.code});

    factory ResGuestDetail.fromJson(Map<String, dynamic> json) {
        return ResGuestDetail(
            data: json['data'] != null ? GuestInfoObj.fromJson(json['data']) : null,
            code: json['code'], 
        );
    }

//    Map<String, dynamic> toJson() {
//        final Map<String, dynamic> data = new Map<String, dynamic>();
//        data['code'] = this.code;
//        if (this.data != null) {
//            data['data'] = this.data.toJson();
//        }
//        return data;
//    }
}